package com.buaa.hyf.util;

import android.app.Activity;

import java.io.IOException;

/**
 * Created by Jeson on 2016/4/23.
 */
public class Globals {
    public static int SCREEN_WIDTH;
    public static int SCREEN_HEIGHT;

    public static void init(Activity a){
        SCREEN_WIDTH = a.getWindowManager().getDefaultDisplay().getWidth();
        SCREEN_HEIGHT = a.getWindowManager().getDefaultDisplay().getHeight();


        try {
            ImageUtil.init(a);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }


}
